package me.fung.wubi.app

import me.fung.keen.app.nav.HOME
import me.fung.keen.app.nav.nav
import me.fung.wubi.app.view.build_table.BUILD_TABLE_VIEW
import me.fung.wubi.app.view.build_table.BuildTableView
import me.fung.wubi.app.view.editor.EDITOR_VIEW
import me.fung.wubi.app.view.editor.EditorView
import me.fung.wubi.app.view.main.MainView

var navigation = nav {
    HOME {
        MainView()
    }

    BUILD_TABLE_VIEW {
        BuildTableView()
    }

    EDITOR_VIEW {
        val param: String = it.first() as String
        EditorView(param)
    }
}

